// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
/* eslint-disable no-new */
Vue.use(ElementUI);

import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.use(VueAxios, axios)

//配置网络请求相关的环境
import {rootUrl} from './util/NetUrl';

Vue.$http.adornUrl = (url) => {
  return rootUrl + url;
}
Vue.$http.adornParams = (adornParams) => {
  return adornParams;
}
Vue.$http.adornData=(param)=>{
  return param;
}

new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
